<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="common/include :: header('部门详细')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-employee-department" th:object="${department}">
        <input  name="id" type="hidden" th:field="*{id}"/>
        <div class="form-group">
            <label class="col-sm-3 control-label">部门名称：</label>
            <div class="col-sm-8">
                <input name="name" class="form-control" type="text" th:field="*{name}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">部门编号：</label>
            <div class="col-sm-8">
                <input name="sn" class="form-control" type="text" th:field="*{sn}">
            </div>
        </div>
    </form>
</div>
<th:block th:include="common/include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "/business/employee";
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/deptEdit", $('#form-employee-department').serialize());
        }
    }
</script>
</body>
</html>
